Default style changes and miscellaneous plotting improvements - #166
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR tweaks the default style a tiny bit to make things closer to matplotlib (e.g. default line width back to
0.8from0.6). It also makes the following plotting-related changes:0.05. The old default of0looked pretty bad in a lot of situations (e.g. bar plots) and there wasn't really a great reason for this style change.areaplot x-bounds are now "sticky", and I also made scalar y-bounds "sticky" so the autoscaling is similar to bar plots. Same goes forareaxplot y-bounds and x-bounds.'rgbcycle'key (which was sort of a half-baked clone of seaborn'sset_color_codes). A more proplot-ey idea would be to add anopencoloroption that uses open-color red, blue, green, etc. for the color codes, but that's not high priority.set_smart_boundsfeature fromFuncScaleaxis scales because it was deprecated in matplotlib.pcolorfastjust likepcolorandpcolormeshare wrapped. Wrapsstem,vlines, andhlinesso that x-coordinates and minimum y-coordinates are optional (resolves Property cycle support for "stem", "step", "vlines", and "hlines"聽#35).negposbar plots, with negative blue bars and positive red bars (resolves Support for bar plots with "positive" and "negative" colors聽#34).add_errorbarstoindicate_errorand includes options for using shading to indicate the error bounds rather than error bars.